export const TypeEnter = 1
export const TypeOut = 0
export const TypeWeek = 2
export const TypeMonth = 3


export const typeList = [
    {value: TypeEnter, label: '进门考', type: ''},
    {value: TypeOut, label: '出门考', type: 'success'},
    {value: TypeWeek, label: '周考', type: 'warning'},
    {value: TypeMonth, label: '月考', type: 'danger'},
]

export const getTypeByValue = (value) => {
    let type = {}
    typeList.forEach( v => {
        if (v.value === value) {
            type = v
        }
    })
    return type
}